package com.coderyeah.cosmetology.controller;


import com.coderyeah.cosmetology.service.ProjectService;
import com.coderyeah.cosmetology.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lqs
 * @since 2022-05-24
 */
@RestController
@RequestMapping("project")
public class ProjectController {
    @Autowired
    private ProjectService projectService;

    @GetMapping("getProInfo")
    public Result getProInfo() {
       return projectService.getProInfo();
    }

    @GetMapping("getProInfoById")
    public Result getProInfoById(@RequestParam("id") String id) {
        return projectService.getProInfoById(id);
    }

}

